import * as actionTypes from '../actionTypes';

/**
 * 这是一个  使用的demo
 */
const initialState = {
	count: 0
};

const reducer = (state = initialState, action) => {
    console.log(state);
	switch (action.type) {
		case actionTypes.ADD_COUNT:
			return { ...state, count: state.count + 1 };
		default:
			return state;
	}
};
export default reducer;
